package com.sqxgg.drugstore.threadPool.rest;

import com.sqxgg.drugstore.threadPool.service.TestThread;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/thread")
public class ThreadControl {
    @Autowired
    TestThread testThread;
    @PostMapping({"/test"})
    public String test()
    {
        try {
            testThread.sayHello("ad");
        }catch (Exception e){

        }

        return "sadasd";
    }
}
